package UDP.sever2;

import java.io.IOException;
import java.net.*;

public class send {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds = new DatagramSocket();
        String s = "hello world";
        byte[] a = s.getBytes();
        InetAddress adress = InetAddress.getByName("224.0.0.1");
        int port = 10000;
        DatagramPacket dp = new DatagramPacket(a, a.length, adress, port);
        ds.send(dp);
        ds.close();

    }
}